export function useGlobSetting() {


    if (import.meta.env.MODE == 'production'){
        // return {
        //     urlPrefix: '/api',
        //     host: 'cds-api.yaolonga.com',
        //     port: '80',
        //     apiUrl: `http://cds-api.yaolonga.com`,
        //     webSocketUrl: 'ws://cds-api.yaolonga.com',
        //     upload: {
        //         avatarApi: "/cds/upload/avatar",
        //         fileApi: "/cds/upload",
        //         filesApi: "/cds/upload/files",
        //         audioApi: "/cds/upload/audio",
        //     }
        // }
        // http://123.249.19.53:8888/
        return {
            urlPrefix: '/api',
            host: '123.249.19.53',
            port: '8888',
            apiUrl: `http://123.249.19.53:8888`,
            webSocketUrl: 'ws://123.249.19.53:8888',
            upload: {
                avatarApi: "/cds/upload/avatar",
                fileApi: "/cds/upload",
                filesApi: "/cds/upload/files",
                audioApi: "/cds/upload/audio",
            }
        }
    }else {
        // return {
        //     urlPrefix: '/api',
        //     host: '123.249.19.53',
        //     port: '8888',
        //     apiUrl: `http://123.249.19.53:8888`,
        //     webSocketUrl: 'ws://123.249.19.53:8888',
        //     upload: {
        //         avatarApi: "/cds/upload/avatar",
        //         fileApi: "/cds/upload",
        //         filesApi: "/cds/upload/files",
        //         audioApi: "/cds/upload/audio",
        //     }
        // }
        return {
            urlPrefix: '/api',
            host: 'localhost',
            port: '8888',
            apiUrl: `http://localhost:8888`,
            webSocketUrl: 'ws://localhost:8888',
            upload: {
                avatarApi: "/cds/upload/avatar",
                fileApi: "/cds/upload",
                filesApi: "/cds/upload/files",
                audioApi: "/cds/upload/audio",
            }
        }
    }




}

export const BEM_PREFIX_CLS = 'yaolong';
export const THEME_COLOR = '#0852B5';
export const isOpenComponentCache = true; //是否开启组件缓存
export const prefixCls = 'yaolong'
